﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QJ.kuangjia.tools
{
    public class ResponseMessage
    {
        public ResponseMessage()
        {
            Code = 1;
        }
        public ResponseMessage(string message)
        {
            this.Message = message;
            Code = 0;
        }
        public ResponseMessage(object data)
        {
            this.Data = data;
            Code = 1;
        }
        /// <summary>
        /// 1.成功。0.失败.
        /// </summary>
        public int Code { set; get; } = 0;
        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message { set; get; } = "";
        /// <summary>
        /// 数据
        /// </summary>
        public object Data { set; get; } = "";
    }
}